﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MantenimientoRubros.aspx.cs" Inherits="Guia_Digital_Georeferenciada.Mantenimientos.MantenimientoRubros" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblTitulo" runat="server" Font-Bold="True" Font-Size="X-Large" Text="Mantenimiento de rubros"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label1" runat="server" Text="Ingrese un nuevo rubro" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="Nombre:"></asp:Label>
        <asp:TextBox ID="txtNombre" runat="server" Width="165px"></asp:TextBox>
        <asp:Label ID="lblErrorNombre" runat="server" ForeColor="Red"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label3" runat="server" Text="Imagen:"></asp:Label>
        &nbsp;
        <asp:Image ID="ImgRubro" runat="server" Height="41px" Width="59px" />
        <asp:Label ID="lblErrorImagen" runat="server" ForeColor="Red">La imagen no puede superar los 30x30 pìxeles</asp:Label>
    </p>
    <p>
        <asp:FileUpload ID="uploadFile" runat="server" Height="20px" Width="238px" />
    </p>
    <p>
        <asp:Button ID="cmdAceptar" runat="server" onclick="cmdAceptar_Click" Text="Aceptar" />
        <asp:Button ID="cmdModificar" runat="server" onclick="cmdModificar_Click" style="height: 26px" Text="Modificar" Visible="False" />
        <asp:Button ID="cmdCancelar" runat="server" onclick="cmdCancelar_Click" style="height: 26px; width: 77px;" Text="Cancelar" />
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
        <asp:GridView ID="GridRubros" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" Height="16px" Width="264px">
            <AlternatingRowStyle BackColor="#F7F7F7" />
            <Columns>
                <asp:BoundField AccessibleHeaderText="RubId" HeaderText="RubId" Visible="False" DataField="RubId" />
                <asp:HyperLinkField AccessibleHeaderText="RubNombre" DataNavigateUrlFields="RubId" DataNavigateUrlFormatString="MantenimientoRubros.aspx?RubId={0}" DataTextField="RubNombre" HeaderText="Rubro" />
                <asp:TemplateField AccessibleHeaderText="Modificar" HeaderText="Modificar">
                    <ItemTemplate>
                                <img src="../imagenes/modificar.png" alt="" width="30px" height="30px" style="border-width:0px;" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <SortedAscendingCellStyle BackColor="#F4F4FD" />
            <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
            <SortedDescendingCellStyle BackColor="#D8D8F0" />
            <SortedDescendingHeaderStyle BackColor="#3E3277" />
        </asp:GridView>                     

    <p>
    </p>
    <p>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
